Carbon


DrawThemeStandaloneNoGrowBox

Header: Appearance.h Carbon status: Supported

Draws a fill image for use in the corner space between scroll bars.

OSStatus DrawThemeStandaloneNoGrowBox (
    Point origin, 
    ThemeGrowDirection growDirection, 
    Boolean isSmall, 
    ThemeDrawState state
);
origin

A structure of type Point. Pass the origin point of the rectangle in which to draw the image. Typically, you use the coordinates of the corner of whatever object owns the image for the origin value. For example, if you are drawing the image in the bottom-right corner of a window between the scroll bars of a non-resizeable scrolling list, the origin value would be the coordinates of the bottom-right corner of the list.

growDirection

A value of type ThemeGrowDirection. See “Theme Size Box Direction Constants” for descriptions of possible values. The Appearance Manager uses the growDirection parameter to establish which corner of the rectangle that contains the image is the origin.

isSmall

A value of type Boolean. Pass a value of true to specify a small image (for use with small scroll bars) or false to specify a large image (for use with standard scroll bars).

state

A value of type ThemeDrawState. Pass a constant—either kThemeStateActive or kThemeStateInactive—appropriate to the current state of the window containing the fill image; the image cannot be drawn as pressed. See “Theme Draw State Constants” for descriptions of these values.

function result

A result code.

DISCUSSION

The DrawThemeStandaloneNoGrowBox function draws a theme-compliant image for use as filler in the corner space between scroll bars that

Also see the function DrawThemeStandaloneGrowBox.

VERSION NOTES

This function is available with Appearance Manager 1.1 and later.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)